# @Time:        2024/7/4 下午4:44
# @USER:        lihuizhuo
# @Site:        www.swust.edu.cn
# @File:        M
# @Software:    PyCharm
# @license:     Copyright(C), swust
# @Author:      huizhuo
# @Email:       huizhuoli@foxmail.com
# @Version:     V1.1.0

import pygame

def my_game():
    """
    这是一个游戏
    :return:
    """
    pygame.init()

    clock = pygame.time.Clock()
    screen = pygame.display.set_mode((800, 600), 0, 32)
    background = pygame.image.load("../resources/images/9b7d76c86c394d4389498486a9ea3fc3.jpeg").convert()

    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                exit()
        screen.blit(background, (20, 20))
        clock.tick(20)
        pygame.display.flip()


def my_test_import():
    print("dsafdsa")


if __name__ == '__main__':
    my_game()


